// list-units-sd-bus.cpp

#include <iostream>
#include <systemd/sd-bus.h>
#include <syslog.h>

int main() {
    for (size_t i = 0; i < 10; i++) {
        syslog(LOG_DEBUG, 
            "this is number: %zu", i);
    }
    sleep(2);
    return 0;
}